import layout from '@/layout/'
const meta = { auth: false }
export default {
    path: '/machine-setting',
    name: 'machine-setting',
    meta,
    redirect: { name: 'machine-setting-index' },
    component: layout,
    children: (pre => [
        {
            path: 'index',
            name: `${pre}index`,
            component: () => import('@/pages/MachineSetting/index'),
            meta: { ...meta, title: '机器设置' }
        },
        {
            path: 'time',
            name: `${pre}time`,
            component: () => import('@/pages/MachineSetting/SettingTime'),
            meta: { ...meta, title: '时间设置' }
        },
        {
            path: 'Warning',
            name: `${pre}Warning`,
            component: () => import('@/pages/MachineSetting/SettingWarning'),
            meta: { ...meta, title: '警示设置' }
        },
        {
            path: 'ring',
            name: `${pre}ring`,
            component: () => import('@/pages/MachineSetting/SettingRing'),
            meta: { ...meta, title: '闹铃设置' }
        },
        {
            path: 'reset',
            name: `${pre}reset`,
            component: () => import('@/pages/MachineSetting/PasswordReset'),
            meta: { ...meta, title: '恢复出厂值' }
        }
    ])('machine-setting-')
}